<?php

namespace MoChat\App\Sales\Contract;

interface SalesTaskEmployeeContract
{
    public function getSalesTaskBySalesTaskId($salesTaskId);

    public function createSalesTaskEmployee($data): bool;

    public function getTotalSalesTaskBySalesTaskId($salesTaskId);

    public function getSalesTaskEmployeeBySalesTaskId($salesTaskId);

    public function updateSalesTaskEmployee($where, $number, $data);

    public function getListSalesTaskEmployee($where, $filed = ['*']);

    public function showSalesClientTaskEmployee($id, $filed = ['*']);

    /**
     * 获取总任务
     * @param $corpId
     * @param $startTime
     * @param $endTime
     * @return mixed
     */
    public function getTotalByCorpIdd($corpId, $startTime, $endTime);

}